<%@ page import="bean.MemberDTO" %>
<%@ page import="bean.MemberVO" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../../js/idcheck.js"></script>
</head>
<body>
<jsp:useBean id="login" class="bean.MemberVO" scope="page"></jsp:useBean>
 <jsp:setProperty property="*" name="login"/>
 <%
	MemberDTO mdto = new MemberDTO();
 %>
<form name="check_id_frm" method= "post" >

	<label class="lbl">아이디</label>
	<input type = "text" name ="m_id" size = "20"  value = "<%=login.getM_id()%>" placeholder="admin" />
	<input type="button" id="check_id" value="아이디 확인"/><br>
	<%if(login.getM_id().equals(null) || login.getM_id().equals("")){ }
	else if(mdto.check(login.getM_id())){ %>
	<h2>사용 가능한 아이디 입니다.</h2>
	<input type="button" id="check_ok" value="아이디 사용"/><br>
	<%}else{ %>
	<h2>사용 불가능한 아이디 입니다.</h2>
	<%} %>
</form>
<script type="text/javascript">check_idInit();</script>
</body>
</html>